package com.kx.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class Springboot037WarApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(Springboot037WarApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //构造新资源
        return builder.sources(Springboot037WarApplication.class);
//        return super.configure(builder);
    }
}
